<?php

if(isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER ['HTTP_X_REQUESTED_WITH']  == 'XMLHttpRequest') {	
	require('../../../../wp-config.php');
	auth_redirect();
	
	if($_POST)
	foreach($_POST as $key => $value) {
		$key = trim(urldecode($key));
		$value = trim(urldecode($value));
		if($value == 1) $value = 'true';
			elseif($value == 0) $value = 'false';
		update_option($key,$value);
	}
}
?>